﻿@using Jb.Common.DB;
@{ 
    bool _HasActivated = NullHandler.GetBoolean(ViewData[AppConstants.ViewDataKeys.HAS_ACTIVATED]); //ViewData[AppConstants.ViewDataKeys.HAS_ACTIVATED] == null ? false : Convert.ToBoolean(ViewData[AppConstants.ViewDataKeys.HAS_ACTIVATED]);         
    String pageTitle = "Company Activation Status";    
    ViewBag.Title = Html.GetPageTitle(pageTitle);    
}

<div class="jb-page-heading">
    <h1>@pageTitle</h1>
    <div></div>    
</div>


<div class="jb-page-content">
@Html.ValidationMessage(AppConstants.Validation.WRONG_ACTIVATION_REQUEST)

@if (_HasActivated) {    
    @Html.SuccessMessageBox(String.Format("Congratulations! Your Company and new users were activated successfully. You can now <a href='/Account/Logon?Type=E'>Login</a> to {0}", @ConfigReader.SiteName))    
}
else {
    @Html.WarningMessageBox("Sorry! Your company activation process was not successful.")
}
</div>


